﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucDanhSachDDH.ascx.cs" Inherits="CungMuaC5.WebUC.wucDanhSachDDH" %>


<asp:GridView ID="gvDSDDH" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" ForeColor="#333333" GridLines="None">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:TemplateField HeaderText="STT">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Stt") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Stt") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Sản Phẩm">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TenKM") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Bind("TenKM") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Người đặt">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("TenTK") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label3" runat="server" Text='<%# Bind("TenTK") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Ngày đặt">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("NgayDat") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# Bind("NgayDat") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Số Lượng">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("SoLuong") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label5" runat="server" Text='<%# Bind("SoLuong") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Đơn Giá">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("DonGia") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label6" runat="server" Text='<%# Bind("DonGia") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tổng Tiền">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("TongTien") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label7" runat="server" Text='<%# Bind("TongTien") %>'></asp:Label>
            </ItemTemplate>
            <ItemStyle BorderColor="#336600" BorderStyle="Solid" BorderWidth="1px" />
        </asp:TemplateField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>



<p align="center">
                    <asp:Label ID="Label4" runat="server" ForeColor="#003300" 
                        Text="Tổng số đơn đặt hàng: " Font-Bold="True"></asp:Label>
                    <asp:Label ID="lblTongSo" runat="server" ForeColor="#CC0000" 
        Font-Bold="True"></asp:Label>
                </p>
<p align="center">
                    <asp:Label ID="Label6" runat="server" ForeColor="#003300" 
                        Text="Tổng số tiền: " Font-Bold="True"></asp:Label>
                    <asp:Label ID="lblTongTien" runat="server" ForeColor="#CC0000" 
        Font-Bold="True"></asp:Label>
                &nbsp;<asp:Label ID="Label7" runat="server" ForeColor="#003300" 
                        Text="Đ" Font-Bold="True"></asp:Label>
                </p>




